import {
  formPreviewSchema,
  buttonPreviewSchema,
  inputPreviewSchema,
  crudPreviewSchema
} from './previews'
import { formProps, buttonProps, inputProps, crudProps } from '@/visitual-editor/props'
import { crudRender } from './render'

export default [
  {
    preview: { ...formPreviewSchema },
    render: { ...formPreviewSchema },
    props: {
      ...formProps
    }
  },
  {
    preview: { ...buttonPreviewSchema },
    render: {
      type: 'button',
      level: 'primary',
      body: '按钮'
    },
    props: buttonProps
  },
  {
    preview: { ...inputPreviewSchema },
    render: { ...inputPreviewSchema },
    props: inputProps
  },
  {
    preview: { ...crudPreviewSchema },
    render: { ...crudRender },
    props: crudProps
  }
]
